﻿@model PlmPersonnelinfoViewModel
@{
    Layout = null;
    ViewBag.Title = "施工人员编辑";
}
<script src="/Scripts/jQuery/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jQuery/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
<script type="text/javascript">
    function dialogRefresh(json) {
        DWZ.ajaxDone(json);
        if (json.statusCode == DWZ.statusCode.ok) {
            $("#pagerForm", navTab.getCurrentPanel()).submit();
            $.pdialog.closeCurrent();
        }
    }
</script>
@{Html.EnableClientValidation();}
@using (Html.BeginForm("ConstructionPersonnelEditData", "PlmConstructionPersonnel", null, FormMethod.Post, new { onsubmit = "return validateCallback(this,dialogRefresh);", @class = "pagerForm required-validate" }))
{
@*<form method="post" action="@Url.Action("ConstructionPersonnelEditData", "PlmConstructionPersonnel")" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogRefresh)">*@
@Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_ID, new { @type = "hidden" })
@Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_SectionName, new { @type = "hidden" })
@Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_UnitID, new { @type = "hidden" })
@Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_UnittName, new { @type = "hidden" })
@Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_UserID, new { @type = "hidden" })
@Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_UserName, new { @type = "hidden" })
<input id="AssistID" name="AssistID" value="@ViewBag.AssisId" type="hidden"/>
<div class="pageFormContent sortDrag" layouth="58">
    <table class="tab01 tabNo">
        <tr>
            <td class="td1" style="width:25%;">所属单位：</td>
            <td>
                @Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_UnittName, new Dictionary<string, object> { {"readonly","readonly"},{"size","30px"},{"class","input02"} })
            </td>
        </tr>
        <tr>
            <td class="td1">姓名：</td>
            <td>
                @Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_Name, new Dictionary<string, object> { { "class", "data-val-required input02" }})
                @Html.ValidationMessageFor(model => model.ThePersonnelinfoInfo.Pi_Name)
               @* @Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_Name, new Dictionary<string, object> { {"class","required input02"} })*@
            </td>
        </tr>
        <tr>
            <td class="td1">性别：</td>
            <td>
            @Html.DropDownListFor(model => model.ThePersonnelinfoInfo.Pi_Sex, ViewBag.list as IEnumerable<SelectListItem>)
        </tr>
        <tr>
            <td class="td1">年龄：</td>
            <td>
                @Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_Age, new Dictionary<string, object> { { "class", "input02" } })
            </td>
        </tr>
        <tr>
            <td class="td1">身份证号：</td>
            <td>
                @Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_IDNo, new Dictionary<string, object> { { "class", "input02" } })
            </td>
        </tr>
        <tr>
            <td class="td1">职位：</td>
            <td>
                @Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_Post, new Dictionary<string, object> { { "class", "input02" } })
            </td>
        </tr>
        <tr>
            <td class="td1">职称：</td>
            <td>
                @Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_Professional, new Dictionary<string, object> { { "class", "input02" } })
            </td>
        </tr>
        <tr>
            <td class="td1">联系电话：</td>
            <td>
                @Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_Phone, new Dictionary<string, object> { { "class", "input02" } })
            </td>
        </tr>
        <tr>
            <td class="td1">邮箱：</td>
            <td>
                @Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_Email, new Dictionary<string, object> { { "class", "input02" } })
            </td>
        </tr>
        <tr>
            <td class="td1">执业证书类型：</td>
            <td>
                @Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_License, new Dictionary<string, object> { { "class", "input02" } })
            </td>
        </tr>
        <tr>
            <td class="td1">执业证书编号：</td>
            <td>
                @Html.TextBoxFor(model => model.ThePersonnelinfoInfo.Pi_LicenseNum, new Dictionary<string, object> { { "class", "input02" } })
            </td>
        </tr>
        <tr>
            <td class="td1">上传近照：</td>
            <td>
                <a href='/Common/UploaderFile/Uploader/?id=ZDFileID' width="710" height="460" rel="rel_WorkFlow_WorksMeasure_Attach"
                    mask="true" target="dialog" title="附件管理">
                    <img src="/Content/themes/default/images/fj.gif" alt="查看附件" id='ZDFileID' 
                       uploaderoption="{MoudleID:@ViewBag.MoudleID,'ToSelectIDs':[@ViewBag.FileIds],'ToDeleteIDs':[@ViewBag.DeleteIds],BizDeleteURL:'/PersonnelLog/Base/Delete/',BizSaveUrl:'/PersonnelLog/Base/BatchAdd/',BizType:'PlmPersonnelinfo_Rules',BizID:'@ViewBag.AssisId','dirWhere':'@ViewBag.DirWhere'}" />
                </a>
            </td>
        </tr>
        @*<dl class="nowrap">
                <dt style="text-align:right">近照：</td>
                <td>
                    <img src="../../Content/uploadify/img/moren.png" height="130"/>
                </td>
            </tr>*@
    </table>
</div>
<div class="formBar">
    <ul>
        <li>
            <button type="submit" class="btn btn-sm">
                保存</button>
        </li>
        <li>
            <button type="button" class="close btn btn-default btn-sm">
                取消</button>
        </li>
    </ul>
</div>
@*</form>*@
}
